package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: ProjectCollectionSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-12
 * @Version: 1.0
 * Table: pear_project_collection
 * Comment:
 * 项目-收藏表
 */
public class ProjectCollectionSuperController extends BaseController {
    @Autowired
    ProjectCollectionService service;

    public Integer addProjectCollection(ProjectCollectionAddRequest request) throws Exception {
        return service.addProjectCollection(request);
    }

    public Integer updateProjectCollection(ProjectCollectionUpdateRequest request) throws Exception {
        return service.updateProjectCollection(request);
    }

    public Integer deleteProjectCollection(ProjectCollectionDeleteRequest request) throws Exception {
        return service.deleteProjectCollection(request);
    }

    public ProjectCollectionQueryResponse queryProjectCollection(ProjectCollectionQueryRequest request) throws Exception {
        return service.queryProjectCollection(request);
    }

    public List<ProjectCollectionQueryResponse> listProjectCollection(ProjectCollectionQueryRequest request) throws Exception {
        return service.listProjectCollection(request);
    }

    public Integer countProjectCollection(ProjectCollectionQueryRequest request) throws Exception {
        return service.countProjectCollection(request);
    }

    public BaseStatResponse statProjectCollection(ProjectCollectionQueryRequest request) throws Exception {
        return service.statProjectCollection(request);
    }


}
